package com.ymatou.iapi.dglogin.parameter;

/**
 * Created by gejianhua on 2019/3/27.
 */
public enum AppSourceEnum {

    /**
     * 代购神器买家微信小程序(60)
     */
    GodUserWxApp(60, "代购神器买家微信小程序"),
    /**
     * 代购神器买家H5程序(61)
     */
    GodUserWxH5App(61, "代购神器买家H5程序"),
    /**
     * 代购神器商家微信小程序(62)
     */
    GodSellerWxApp(62, "代购神器商家微信小程序"),
    /**
     * 代购神器商家PC端网站(63)
     */
    GodSellerPc(63, "代购神器商家PC端网站"),
    /**
     * 代购神器商家APP(64)
     */
    GodSellerApp(64, "代购神器商家APP"),
    /**
     * 代购神器买家支付宝小程序(65)
     */
    GodUserAliPayApp(65, "代购神器买家支付宝小程序"),
    /**
     * 代购神器买家抖音小程序(66)
     */
    GodUserDyApp(66, "代购神器买家抖音小程序"),
    GodUserTouTiaoApp(67, "代购神器买家头条小程序"),


    ;


            ;


    private int code;
    private String message;

    public int getCode(){
        return this.code;
    }

    public String getMessage(){
        return this.message;
    }

    private AppSourceEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public static AppSourceEnum parse(int code){
        for (AppSourceEnum appSourceEnum : AppSourceEnum.values()) {
            if(appSourceEnum.getCode() == code){
                return appSourceEnum;
            }
        }
        return null;
    }
}







































